unit Unit2;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm2 = class(TForm)
    Button1: TButton;
    Label1: TLabel;
    Label2: TLabel;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    procedure ShowLevel(aTitle, aLevelName: string);
    { Public declarations }
  end;

var
  Form2: TForm2;

implementation

procedure TForm2.ShowLevel(aTitle, aLevelName: string);
begin
  Label1.Caption := aTitle;
  Label2.Caption := aLevelName;
  ShowModal;
end;

{$R *.dfm}

procedure TForm2.Button1Click(Sender: TObject);
begin
  ModalResult := mrOk;
end;

end.
